package com.ling.pl.security.feign;

import com.ling.pl.core.commons.support.DaoPage;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.Map;

/**
 * @author bo.wang
 */
@RequestMapping("/defaultGroup")
@FeignClient(name = "LING-CLOUD-BASE")
public interface DefaultGroupService extends BaseDefaultGroupService {

    @RequestMapping(value = "/loadGroupMembers", method = RequestMethod.GET)
    public DaoPage loadGroupMembers(Map params) throws Exception;

    @RequestMapping(value = "/deleteMember", method = RequestMethod.PUT)
    public void deleteMember(@RequestParam("memberId") String memberId) throws Exception;

    @RequestMapping(value = "/insertGroupMembers", method = RequestMethod.GET)
    public String insertGroupMembers(@RequestParam("ids") Collection<String> ids, @RequestParam("groupId") String groupId, @RequestParam("type") String type) throws Exception;
}

